//导入vue-router文件
import VueRouter from 'vue-router'

//导入组件
import home from './components/tabbar/home.vue'
import member from './components/tabbar/member.vue'
import shopcar from './components/tabbar/shopcar.vue'
import search from './components/tabbar/search.vue'
import newsList from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'
import photoLists from './components/photo/photoLists.vue'
import photoInfo from './components/photo/photoInfo.vue'


var router = new VueRouter({
    routes:[
        {path:'/',redirect:'./home'},
        {path:'/home',component:home},
        {path:'/member',component:member},
        {path:'/shopcar',component:shopcar},
        {path:'/search',component:search},
        {path:'/home/newsList',component:newsList},
        {path:'/home/newsInfo/:id',component:newsInfo},
        {path:'/home/photoLists',component:photoLists},
        {path:'/home/photoInfo',component:photoInfo}
    ],
    linkActiveClass:' mui-active'
})

export default router